package com.example.license.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * License生成类需要的参数
 */
@Setter
@Getter
public class LicenseCreatorParam implements Serializable {
    /**
     * 证书发布时间
     */
    private Date issuedTime = new Date();

    /**
     * 有效开始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date notBeforeTime;

    /**
     * 有效截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date notAfterTime;

    /**
     * 额外的服务器硬件校验信息
     */
    private LicenseCheckModel licenseCheckModel;
}
